package com.xh.personsystem.service;

import com.xh.personsystem.entity.PersonInfo;
import com.xh.personsystem.maper.PersoninfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Admins
 */
@Service
public class PersonServiceImpl {
    @Autowired
    private PersoninfoMapper personinfoMapper;

    public List<PersonInfo> findAll(){
        return personinfoMapper.findAll();
    }

    public Integer findCount(){
        return personinfoMapper.dataCount();
    }

    public Integer deleteById(Integer id){
        return personinfoMapper.deleteById(id);
    }
}
